#include <stdio.h>
#include "../common/decimalTrans.c"

int bis(int x, int m) {
    return x | m;
}

int bic(int x, int m) {
    return x & ~m;
}

int bool_or(int x, int y) {
    int result = bis(x, y);
    return result;
}

int bool_xor(int x, int y) {
    int result = bis(bic(x, y), bic(y,x));
    return result;
}

int main() {
    int a = 0x06;
    int b = 0x0c;
    toBinary(bic(a, b));
    toBinary(bool_or(a, b));
    toBinary(bool_xor(a, b));

    return 0;
}